package com.weilele.leisure.video_factory.ui.module.common.holder


import android.view.View
import com.weilele.leisure.time.databinding.HolderPermissionTipsItemBinding
import com.weilele.mvvm.adapter.MvvmHolder
import com.weilele.mvvm.adapter.mvvmRcvAdapter

class PermissionTipsItemHolder :
    MvvmHolder<String, HolderPermissionTipsItemBinding> {
    companion object {
        fun toAdapter() =
            mvvmRcvAdapter(PermissionTipsItemHolder::class.java, { old, new -> old == new },
                { old, new -> old == new })
    }

    constructor(binding: HolderPermissionTipsItemBinding) : super(binding)
    constructor(itemView: View) : super(itemView)


    override fun bindData(data: String) {
        mBinding.root.text = data
    }
}